3.139 \(\int \cot (a+b x) \csc (a+b x) \, dx\)

Optimal. Leaf size=11 \[ -\frac {\csc (a+b x)}{b} \]

[Out]

-csc(b*x+a)/b

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 11, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {2606, 8} \[ -\frac {\csc (a+b x)}{b} \]

Antiderivative was successfully verified.

[In]

Int[Cot[a + b*x]*Csc[a + b*x],x]

[Out]

-(Csc[a + b*x]/b)

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rule 2606

Int[((a_.)*sec[(e_.) + (f_.)*(x_)])^(m_.)*((b_.)*tan[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Dist[a/f, Subst[
Int[(a*x)^(m - 1)*(-1 + x^2)^((n - 1)/2), x], x, Sec[e + f*x]], x] /; FreeQ[{a, e, f, m}, x] && IntegerQ[(n -
1)/2] &&  !(IntegerQ[m/2] && LtQ[0, m, n + 1])

Rubi steps

\begin {align*} \int \cot (a+b x) \csc (a+b x) \, dx &=-\frac {\operatorname {Subst}(\int 1 \, dx,x,\csc (a+b x))}{b}\\ &=-\frac {\csc (a+b x)}{b}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 11, normalized size = 1.00 \[ -\frac {\csc (a+b x)}{b} \]

Antiderivative was successfully verified.

[In]

Integrate[Cot[a + b*x]*Csc[a + b*x],x]

[Out]

-(Csc[a + b*x]/b)

________________________________________________________________________________________

fricas [A]  time = 0.45, size = 13, normalized size = 1.18 \[ -\frac {1}{b \sin \left (b x + a\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(b*x+a)/sin(b*x+a)^2,x, algorithm="fricas")

[Out]

-1/(b*sin(b*x + a))

________________________________________________________________________________________

giac [A]  time = 0.59, size = 13, normalized size = 1.18 \[ -\frac {1}{b \sin \left (b x + a\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(b*x+a)/sin(b*x+a)^2,x, algorithm="giac")

[Out]

-1/(b*sin(b*x + a))

________________________________________________________________________________________

maple [A]  time = 0.00, size = 14, normalized size = 1.27 \[ -\frac {1}{b \sin \left (b x +a \right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(b*x+a)/sin(b*x+a)^2,x)

[Out]

-1/b/sin(b*x+a)

________________________________________________________________________________________

maxima [A]  time = 0.44, size = 13, normalized size = 1.18 \[ -\frac {1}{b \sin \left (b x + a\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(b*x+a)/sin(b*x+a)^2,x, algorithm="maxima")

[Out]

-1/(b*sin(b*x + a))

________________________________________________________________________________________

mupad [B]  time = 0.42, size = 13, normalized size = 1.18 \[ -\frac {1}{b\,\sin \left (a+b\,x\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(a + b*x)/sin(a + b*x)^2,x)

[Out]

-1/(b*sin(a + b*x))

________________________________________________________________________________________

sympy [A]  time = 1.02, size = 20, normalized size = 1.82 \[ \begin {cases} - \frac {1}{b \sin {\left (a + b x \right )}} & \text {for}\: b \neq 0 \\\frac {x \cos {\relax (a )}}{\sin ^{2}{\relax (a )}} & \text {otherwise} \end {cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(b*x+a)/sin(b*x+a)**2,x)

[Out]

Piecewise((-1/(b*sin(a + b*x)), Ne(b, 0)), (x*cos(a)/sin(a)**2, True))

________________________________________________________________________________________